home *** CD-ROM | disk | FTP | other *** search
- .key source/a,image/a,opt1,opt2,opt3
-
- if exists <image>.tmp
- echo "Found <image>.tmp ... skipping to TMPtoIFF"
- skip T2ICONT
- endif
- if exists <source><image>
- G2I:GIFtoTMP <source><image> <image>.tmp
- if warn
- skip UNLACEIT
- endif
- if not exists <image>.tmp
- echo "G2I:GIFtoTMP <source><image> <image>.tmp failed"
- quit 20
- endif
- else
- if exists <source><image>.gif
- G2I:GIFtoTMP <source><image>.gif <image>.tmp
- if warn
- skip UNLACEIT
- endif
- if not exists <image>.tmp
- echo "G2I:GIFtoTMP <source><image>.gif <image>.tmp --- failed"
- quit 20
- endif
- else
- echo "Can't find <source><image> or <source><image>.gif"
- quit 20
- endif
- endif
-
- LAB T2ICONT
- G2I:TMPtoIFF <image>.tmp <image>.pic <opt1> <opt2>
- if exists <image>.pic
- if <opt3> EQ "NOTMP"
- del <image>.tmp
- endif
- echo "Success"
- skip THEEND
- else
- echo "G2I:TMPtoIFF <image>.tmp <image>.pic <opt1> <opt2> --- failed"
- endif
- quit 20
-
- LAB UNLACEIT
- G2I:Unlace <image>.tmp <image>.ltmp
- if exists <image>.ltmp
- del <image>.tmp
- rename <image>.ltmp <image>.tmp
- G2I:TMPtoIFF <image>.tmp <image>.pic <opt1> <opt2>
- if exists <image>.pic
- if <opt3> EQ "NOTMP"
- del <image>.tmp
- endif
- echo "Success"
- skip THEEND
- else
- echo "G2I:TMPtoIFF <image>.tmp <image>.pic <opt1> <opt2> --- failed"
- quit 20
- endif
- else
- echo "G2I:Unlace <image>.tmp <image>.ltmp --- failed"
- endif
- quit 20
- LAB THEEND
-